<%@ include file="../includes/comunAjax.jsp"%>
<%@page import="cbm.commons.ConstantsWeb"%>

<table class="tblListado">
	<tr><c:if test="${lista != null}">
		<th width="1%" colspan="2" rowspan="2">Opciones</th>
		</c:if>
		<th colspan="2" width="30%">Tipo de Par&aacute;metro</th>
		<th colspan="5" width="70%">Par&aacute;metro</th></tr>
	<tr>
		<th style="width: 50px!important;">C&oacute;digo</th>
		<th style="width: 200px!important;" nowrap="nowrap">Descripci&oacute;n</th>
		<th style="width: 50px!important;">C&oacute;digo</th>
		<th style="width: 100px!important;" nowrap="nowrap">Descripci&oacute;n</th>
		<th style="width: 50px!important;">Estado</th>
		<th style="width: 100px!important;">V. Num&eacute;rico</th>
		<th style="width: 100px!important;" >V. Alfanum&eacute;rico</th>
	</tr>
	<c:if test="${lista == null}">
		<tr>
			<td colspan="7" align="left" valign="top"><%=ConstantsWeb.MENSAJE_NINGUN_REG_ENC%></td>
		</tr>
	</c:if>	
	<c:if test="${lista != null}" >
		<c:forEach items="${lista}" var="item" varStatus="status">
			<tr id="tr${item.codigoparametro}">
				<td nowrap>&nbsp;<a class='lnkModificar' href="javascript:modificar('${item.codigoparametro}');"></a> &nbsp;</td>
				<td nowrap>&nbsp;
				<c:choose>
					<c:when test="${item.flagSistema eq 0}">
						<a class='lnkEliminar'  href="javascript:eliminar('${item.codigoparametro}');"></a>
					</c:when>
				</c:choose> 
				&nbsp;</td>
				<td>${item.tipoparametro.codigotipoparametro}&nbsp;</td>
				<td>${item.tipoparametro.descripcionparametro}&nbsp;</td>
				<td>${item.codigoparametro}</td>
				<td><c:choose>
						<c:when test="${item.tipoparametro.codigotipoparametro == 38}">
							${item.valorTextoHTML}
						</c:when>
						<c:otherwise>
							${item.descripcion}
						</c:otherwise>
					</c:choose>
					
				</td>
				<td>${item.flagactivo}</td>
				<td>${item.valornumerico}&nbsp;</td>
				<td>${item.valoralfanumerico}&nbsp;</td>
			</tr>
	   </c:forEach>
   </c:if>
</table>